package com.ruoyi.crm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 项目工时对象 project_hours
 *
 * @author ruoyi
 * @date 2021-08-30
 */
public class ProjectHours extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 工时编号 */
    @Excel(name = "工时编号")
    private String hoursNo;

    /** 工程师 */
    @Excel(name = "工程师")
    private String engineer;

    /** 合计 */
    @Excel(name = "合计")
    private Long total;

    /** 间接工时合计 */
    @Excel(name = "间接工时合计")
    private Long indirectHours;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 非项目 */
    @Excel(name = "非项目")
    private String outProject;

    /** 工时 */
    @Excel(name = "工时")
    private Long workHours;

    /** 备注 */
    @Excel(name = "备注")
    private String comment;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setHoursNo(String hoursNo)
    {
        this.hoursNo = hoursNo;
    }

    public String getHoursNo()
    {
        return hoursNo;
    }
    public void setEngineer(String engineer)
    {
        this.engineer = engineer;
    }

    public String getEngineer()
    {
        return engineer;
    }
    public void setTotal(Long total)
    {
        this.total = total;
    }

    public Long getTotal()
    {
        return total;
    }
    public void setIndirectHours(Long indirectHours)
    {
        this.indirectHours = indirectHours;
    }

    public Long getIndirectHours()
    {
        return indirectHours;
    }
    public void setDate(Date date)
    {
        this.date = date;
    }

    public Date getDate()
    {
        return date;
    }
    public void setOutProject(String outProject)
    {
        this.outProject = outProject;
    }

    public String getOutProject()
    {
        return outProject;
    }
    public void setWorkHours(Long workHours)
    {
        this.workHours = workHours;
    }

    public Long getWorkHours()
    {
        return workHours;
    }
    public void setComment(String comment)
    {
        this.comment = comment;
    }

    public String getComment()
    {
        return comment;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("hoursNo", getHoursNo())
                .append("engineer", getEngineer())
                .append("total", getTotal())
                .append("indirectHours", getIndirectHours())
                .append("updateTime", getUpdateTime())
                .append("date", getDate())
                .append("outProject", getOutProject())
                .append("workHours", getWorkHours())
                .append("comment", getComment())
                .toString();
    }
}